#ifndef PROXY_CHANNEL_CLIENT_SIDE_H_
#define PROXY_CHANNEL_CLIENT_SIDE_H_

#include "proxy/conn/tcpaccpetserver.h"
#include "proxy/conn/tcpserver.h"

namespace proxy{

  class ClientSide : public TcpServer {
  public:
    typedef boost::shared_ptr<ClientSide> Ptr;
    ClientSide( std::string bind_addr,uint16 bind_port,
    std::string proxy_addr, uint16 porxy_port, int thread_num);
    virtual ~ClientSide();
  private:
    virtual void OnNewConnect(TcpAccpetServer::Ptr accpet_server,
      socket_ptr connect);
  private:
    std::string proxy_addr_;
    uint16 porxy_port_;
  };
}

#endif // PROXY_CHANNEL_CLIENT_SIDE_H_